﻿/*

Ext Gantt Pro 4.0.2
Copyright(c) 2009-2015 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/license

*/
// @tag alternative-locale
Ext.define('Gnt.locale.zh_CN', {
    extend: 'Sch.locale.Locale',
    requires: 'Sch.locale.zh_CN',
    singleton: true,

    l10n: {
        'Gnt.util.DurationParser': {
            unitsRegex: {
                MILLI: /^ms$|^mil/i,
                SECOND: /^s$|^sec/i,
                MINUTE: /^m$|^min/i,
                HOUR: /^h$|^hr$|^hour/i,
                DAY: /^d$|^day/i,
                WEEK: /^w$|^wk|^week/i,
                MONTH: /^mo|^mnt/i,
                QUARTER: /^q$|^quar|^qrt/i,
                YEAR: /^y$|^yr|^year/i
            }
        },

        'Gnt.util.DependencyParser': {
            typeText: {
                SS: 'SS',
                SF: 'SF',
                FS: 'FS',
                FF: 'FF'
            }
        },

        'Gnt.panel.Timeline': {
            start: '开始',
            end: '结束'
        },

        'Gnt.field.ShowInTimeline': {
            yes: '是',
            no: '否'
        },

        'Gnt.column.ShowInTimeline': {
            text: '显示时间轴'
        },

        'Gnt.field.ConstraintType': {
            none: 'none'
        },

        'Gnt.field.Duration': {
            invalidText: "无效的文本"
        },

        'Gnt.field.Effort': {
            invalidText: "无效的文本"
        },

        'Gnt.field.Percent': {
            invalidText: "无效的文本"
        },

        'Gnt.field.SchedulingMode': {
            Normal: '普通',
            FixedDuration: '固定期限',
            EffortDriven: '努力推动',
            DynamicAssignment: '动态分配'
        },

        'Gnt.feature.DependencyDragDrop': {
            fromText: '从',
            toText: '到',
            startText: '开始',
            endText: '结束'
        },

        'Gnt.Tooltip': {
            startText: '开始: ',
            endText: '结束: ',
            durationText: '工期:'
        },

        'Gnt.plugin.TaskContextMenu': {
            projectInformation: '项目信息',
            taskInformation: '任务信息',
            newTaskText: '新任务',
            deleteTask: '删除任务',
            editLeftLabel: '编辑左边标签',
            editRightLabel: '编辑右边标签',
            add: '添加...',
            deleteDependency: '删除依赖...',
            addTaskAbove: '到上方',
            addTaskBelow: '到下方',
            addMilestone: '里程碑',
            addSubtask: '子任务',
            addSuccessor: '后置任务',
            addPredecessor: '前置任务',
            convertToMilestone: '转换到里程碑',
            convertToRegular: '转换到普通',
            splitTask: '分割任务'
        },

        'Gnt.plugin.DependencyEditor': {
            fromText: '从',
            toText: '到',
            typeText: '类型',
            lagText: '间隔',
            endToStartText: '结束到开始',
            startToStartText: '开始到开始',
            endToEndText: '结束到结束',
            startToEndText: '开始到结束'
        },

        'Gnt.widget.calendar.Calendar': {
            dayOverrideNameHeaderText: 'Name',
            overrideName: 'Name',
            startDate: 'Start Date',
            endDate: 'End Date',
            error: 'Error',
            dateText: 'Date',
            addText: 'Add',
            editText: 'Edit',
            removeText: 'Remove',
            workingDayText: 'Working day',
            weekendsText: 'Weekends',
            overriddenDayText: 'Overridden day',
            overriddenWeekText: 'Overridden week',
            workingTimeText: 'Working time',
            nonworkingTimeText: 'Non-working time',
            dayOverridesText: 'Day overrides',
            weekOverridesText: 'Week overrides',
            okText: 'OK',
            cancelText: 'Cancel',
            parentCalendarText: 'Parent calendar',
            noParentText: 'No parent',
            selectParentText: 'Select parent',
            newDayName: '[Without name]',
            calendarNameText: 'Calendar name',
            tplTexts: {
                tplWorkingHours: 'Working hours for',
                tplIsNonWorking: 'is non-working',
                tplOverride: 'override',
                tplInCalendar: 'in calendar',
                tplDayInCalendar: 'standard day in calendar',
                tplBasedOn: 'Based on'
            },
            overrideErrorText: 'There is already an override for this day',
            overrideDateError: 'There is already a week override on this date: {0}',
            startAfterEndError: 'Start date should be less than end date',
            weeksIntersectError: 'Week overrides should not intersect'
        },

        'Gnt.widget.calendar.CalendarManager': {
            addText: 'Add',
            removeText: 'Remove',
            add_child: 'Add child',
            add_node: 'Add calendar',
            add_sibling: 'Add sibling',
            remove: 'Remove',
            calendarName: 'Calendar',
            confirm_action: 'Confirm action',
            confirm_message: 'Calendar has unsaved changes. Would you like to save your changes?'
        },

        'Gnt.widget.calendar.CalendarManagerWindow': {
            title: 'Calendar manager',
            ok: 'Apply changes',
            cancel: 'Close',
            confirm_action: 'Confirm action',
            confirm_message: 'Calendar has unsaved changes. Would you like to save your changes?'
        },

        'Gnt.widget.calendar.AvailabilityGrid': {
            startText: '开始',
            endText: '结束',
            addText: '新增',
            removeText: '删除',
            error: '错误'
        },

        'Gnt.widget.calendar.DayEditor': {
            workingTimeText: '工作时间',
            nonworkingTimeText: '非工作时间'
        },

        'Gnt.widget.calendar.WeekEditor': {
            defaultTimeText: 'Default time',
            workingTimeText: 'Working time',
            nonworkingTimeText: 'Non-working time',
            error: 'Error',
            noOverrideError: "Week override contains only 'default' days - can't save it"
        },

        'Gnt.widget.calendar.ResourceCalendarGrid': {
            name: '名称',
            calendar: '日历'
        },

        'Gnt.widget.calendar.CalendarWindow': {
            ok: '确认',
            cancel: '取消'
        },

        'Gnt.field.Assignment': {
            cancelText: '取消',
            closeText: '关闭'
        },

        'Gnt.column.AssignmentUnits': {
            text: '分配单位'
        },

        'Gnt.column.Duration': {
            text: '工期'
        },

        'Gnt.column.Effort': {
            text: 'Effort'
        },

        'Gnt.column.EndDate': {
            text: '结束时间'
        },

        'Gnt.column.PercentDone': {
            text: '进度(%)'
        },

        'Gnt.column.ResourceAssignment': {
            text: '资源分配'
        },

        'Gnt.column.ResourceName': {
            text: '名称'
        },

        'Gnt.column.Rollup': {
            text: '汇总任务',
            yes: '是',
            no: '否'
        },

        'Gnt.field.ManuallyScheduled': {
            yes: '是',
            no: '否'
        },

        'Gnt.field.ReadOnly': {
            yes: '是',
            no: '否'
        },

        'Gnt.column.ManuallyScheduled': {
            text: '手动模式'
        },

        'Gnt.column.SchedulingMode': {
            text: '模式'
        },

        'Gnt.column.Predecessor': {
            text: '前置任务'
        },

        'Gnt.column.Successor': {
            text: '后置任务'
        },

        'Gnt.column.StartDate': {
            text: '开始时间'
        },

        'Gnt.column.WBS': {
            text: 'WBS'
        },

        'Gnt.column.Sequence': {
            text: '#'
        },

        'Gnt.column.Calendar': {
            text: '日历'
        },

        'Gnt.column.ReadOnly': {
            text: '只读'
        },

        'Gnt.widget.taskeditor.ProjectForm': {
            projectText: '项目',
            nameText: '名称',
            datesText: '时间',
            startText: '开始',
            finishText: '结束',
            calendarText: '日历',
            readOnlyText: '只读',
            allowDependenciesText: '允许跨项目依赖关系'
        },

        'Gnt.widget.taskeditor.TaskForm': {
            taskNameText: '任务名称',
            durationText: '工期',
            datesText: '时间',
            baselineText: '基线',
            startText: '开始时间',
            finishText: '结束时间',
            percentDoneText: '进度',
            baselineStartText: '基线开始',
            baselineFinishText: '基线结束',
            baselinePercentDoneText: '基线进度',
            effortText: '工时',
            invalidEffortText: '无效的工时值',
            calendarText: '日历',
            manuallyScheduledText: '手动计划',
            schedulingModeText: '调度方式',
            rollupText: '汇总',
            wbsCodeText: 'WBS code',
            "Constraint Type": '约束类型',
            "Constraint Date": '约束时间',
            readOnlyText: '只读'
        },

        'Gnt.widget.DependencyGrid': {
            idText: 'ID',
            snText: 'SN',
            taskText: '任务',
            blankTaskText: '请选择任务',
            invalidDependencyText: '无效的依赖',
            parentChildDependencyText: '父子依赖',
            duplicatingDependencyText: '复制依赖',
            transitiveDependencyText: '传递依赖',
            cyclicDependencyText: '循环依赖',
            typeText: '类型',
            lagText: '间隔',
            clsText: 'CSS 类',
            endToStartText: '结束到开始',
            startToStartText: '开始到开始',
            endToEndText: '结束到结束',
            startToEndText: '开始到结束'
        },

        'Gnt.widget.AssignmentEditGrid': {
            confirmAddResourceTitle: '确认',
            confirmAddResourceText: '是否确认添加?',
            noValueText: '请选择资源分配',
            noResourceText: '没有找到资源'
        },

        'Gnt.widget.taskeditor.ProjectEditor': {
            generalText: '基本信息',
            descriptionText: '描述'
        },

        'Gnt.widget.taskeditor.TaskEditor': {
            generalText: '基本信息',
            resourcesText: '资源分配',
            dependencyText: '依赖关系',
            addDependencyText: '添加',
            dropDependencyText: '删除',
            notesText: '备注',
            advancedText: '高级',
            addAssignmentText: '添加',
            dropAssignmentText: '删除'
        },

        'Gnt.plugin.taskeditor.BaseEditor': {
            title: '任务信息',
            alertCaption: '警告说明',
            alertText: '提示',
            okText: '确认',
            cancelText: '取消'
        },

        'Gnt.plugin.taskeditor.ProjectEditor': {
            title: '项目信息'
        },

        'Gnt.field.EndDate': {
            endBeforeStartText: '结束日期为起始日期之前'
        },

        'Gnt.column.Note': {
            text: '备注'
        },

        'Gnt.column.AddNew': {
            text: '新增列...'
        },

        'Gnt.column.EarlyStartDate': {
            text: '最早开始'
        },

        'Gnt.column.EarlyEndDate': {
            text: '提前完成'
        },

        'Gnt.column.LateStartDate': {
            text: '最晚开始'
        },

        'Gnt.column.LateEndDate': {
            text: '最晚完成'
        },

        'Gnt.field.Calendar': {
            calendarNotApplicable: '任务日历与分配资源的日历没有重叠'
        },

        'Gnt.column.Slack': {
            text: 'Slack'
        },

        'Gnt.column.Name': {
            text: '任务名称'
        },

        'Gnt.column.BaselineStartDate': {
            text: '基线开始日期'
        },

        'Gnt.column.BaselineEndDate': {
            text: '基线结束日期'
        },

        'Gnt.column.Milestone': {
            text: '里程碑'
        },

        'Gnt.field.Milestone': {
            yes: '是',
            no: '否'
        },

        'Gnt.field.Dependency': {
            invalidFormatText: '无效的格式',
            invalidDependencyText: '无效的依赖，请确保你的任务之间没有任何的循环依赖',
            invalidDependencyType: '无效的依赖类型 {0}. 允许的值: {1}.'
        },

        'Gnt.constraint.Base': {
            name: "约束",
            "Remove the constraint": "删除约束",
            "Cancel the change and do nothing": "取消变更"
        },

        'Gnt.constraint.FinishNoEarlierThan': {
            name: "结束不早于",
            // {0} constraint date
            "Move the task to finish on {0}": "移动任务结束时间到 {0}"
        },

        "Gnt.constraint.FinishNoLaterThan": {
            name: "结束不晚于",
            // {0} constraint date
            "Move the task to finish on {0}": "移动任务结束时间到 {0}"
        },

        "Gnt.constraint.MustFinishOn": {
            name: "必须结束于",
            // {0} constraint date
            "Move the task to finish on {0}": "移动任务结束时间到 {0}"
        },

        "Gnt.constraint.MustStartOn": {
            name: "必须开始于",
            // {0} constraint date
            "Move the task to start at {0}": "移动任务开始时间到 {0}"
        },

        "Gnt.constraint.StartNoEarlierThan": {
            name: "开始不早于",
            // {0} constraint date
            "Move the task to start at {0}": "移动任务开始时间到 {0}"
        },

        "Gnt.constraint.StartNoLaterThan": {
            name: "开始不晚于",
            // {0} constraint date
            "Move the task to start at {0}": "移动任务开始时间到 {0}"
        },

        "Gnt.column.ConstraintDate": {
            text: "约束时间"
        },

        "Gnt.column.ConstraintType": {
            text: "约束类型"
        },

        "Gnt.widget.ConstraintResolutionForm": {
            dateFormat: "d.m.Y",
            "OK": '确认',
            "Cancel": '取消',
            "Resolution options": "分解选项",
            "Don't ask again": "不再询问",
            // {0} task name, {1} constraint name
            "Task {0} violates constraint {1}": "任务 \"{0}\" 违反约束 {1}",
            // {0} task name, {1} constraint name, {2} constraint date
            "Task {0} violates constraint {1} {2}": "任务 \"{0}\" 违反约束 {1} {2}"
        },

        "Gnt.widget.ConstraintResolutionWindow": {
            "Constraint violation": "约束违规"
        },

        "Gnt.panel.ResourceHistogram": {
            resourceText: '资源'
        }
    },


    apply: function (classNames) {
        // apply corresponding scheduler locale first
        Sch.locale.zh_CN.apply(classNames);
        this.callParent(arguments);
    }
});
